package Demo01Interface.Demo174;

import Demo12.MyAbstract;

public class Demo {
    public static void main(String[] args) {
        MyInterfaceDefaultA A = new MyInterfaceDefaultA();
        A.method();
        A.method2();

        MyInterfaceDefaultB B = new MyInterfaceDefaultB();
        B.method();
        B.method2();

        MyInterface I = new MyInterfaceDefaultA() {
            @Override
            public void method() {
                System.out.println("Override接口中的抽象方法");
            }
        };

        I.method();
        I.method2();
        MyInterface.methodStatic();


    }

}
